import 'package:du_application/pages/classify/classify.dart';
import 'package:flutter/material.dart';
import './router_handler.dart';
import 'package:fluro/fluro.dart';

class Routes{
  static String root='/';
  static String person = '/person';
  static String goods = '/goods';
  static String login = '/login';
  static String camera = '/camera';
  static String image = '/image';
  static String affairs = '/affairs';
  static String affairDetail = '/affairDetail';
  static String classify = '/classify';
  static String list = '/list';
  static String order = '/order';
  static String register = '/register';
  static String info = '/info';
  static String submit = '/submit';
  static String collect = '/collect';
  static String evaluate = '/evaluate';
  static String affairList = '/affairList';
 
  static void configureRoutes(Router router){
    router.notFoundHandler= new Handler(
      handlerFunc: (BuildContext context,Map<String,List<String>> params){
        print('ERROR====>ROUTE WAS NOT FONUND!!!');
      }
    );
    router.define(root, handler: rootHanderler); // 根目录
    router.define(person, handler: personHanderler); // 设置
    router.define(goods, handler: goodsHanderler); // 设置
    router.define(login, handler: loginHanderler); // 设置
    // router.define(camera, handler: cameraHanderler); // 设置
    router.define(image, handler: imageHanderler); // 设置
    router.define(affairs, handler: affairsHanderler); // 设置
    router.define(classify, handler: classifyHanderler); // 设置
    router.define(list, handler: listHanderler); // 设置
    router.define(order, handler: orderHanderler); // 设置
    router.define(register, handler: registerHanderler); // 设置
    router.define(info, handler: infoHanderler); // 设置
    router.define(submit, handler: submitHanderler); // 设置
    router.define(collect, handler: collectHanderler); // 设置
    router.define(evaluate, handler: evaluateHanderler); // 设置
    router.define(affairDetail, handler: affairDetailHanderler); // 设置
    router.define(affairList, handler: affairListHanderler); // 设置
// 测试model传参

  }

}